package com.iris.live.services.data.models;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Created by DF on 9/18/2016.
 */
public class Lsh精品套餐详细ModelPK implements Serializable {
    private int 套餐编号;
    private int 精品编号;

    @Column(name = "套餐编号")
    @Id
    public int get套餐编号() {
        return 套餐编号;
    }

    public void set套餐编号(int 套餐编号) {
        this.套餐编号 = 套餐编号;
    }

    @Column(name = "精品编号")
    @Id
    public int get精品编号() {
        return 精品编号;
    }

    public void set精品编号(int 精品编号) {
        this.精品编号 = 精品编号;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Lsh精品套餐详细ModelPK that = (Lsh精品套餐详细ModelPK) o;

        if (套餐编号 != that.套餐编号) return false;
        if (精品编号 != that.精品编号) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 套餐编号;
        result = 31 * result + 精品编号;
        return result;
    }
}
